﻿using ArtMath.Core.Helper;
using ArtMath.Flag;
using ArtMath.Resource;
using System;

namespace ArtMath.Component.Vector
{
    /// <summary>
    /// 两点向量
    /// </summary>
    [Serializable]
    public class TwoPointsVector : VectorBase
    {
        public TwoPointsVector(SketchPad pad, string name, bool addToList = true) : base(pad, name, ToolTypeName.ldxl, addToList)
        {

        }
        public override void CreateComponents()
        {
            if (Point1 == null)
            {
                CreateComponents(Resources.Translate("StartPoint"));
            }
            else
            {
                CreateComponents(Resources.Translate("TerminalPoint"));
            }
        }
    }
}
